var path = require('path');
var express = require('express');
var app = express();

var indexRouter = require('./route/index');
var userRouter = require('./route/users');
//设置模板文件
app.set('views', path.join(__dirname, 'views'));
//设置ejs模板
app.set('view engine', 'ejs');

app.use('/', indexRouter);
app.use('/users', userRouter);

app.listen(3001);